import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import org.jdesktop.application.Application;



import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class canteenII extends javax.swing.JFrame {
	private JPanel zero;
	private JPanel jPanel1;
	private JPanel text;
	private JButton jButton1;
	private JTable jTable1;
	private JLabel jLabel2;
	private JButton jButton3;
	private JButton jButton2;
	private JLabel jLabel1;
	private JPanel bar;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				canteenII inst = new canteenII();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public canteenII() {
		super();
		initGUI();
	}
	
	
    
	static class Action implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			RM frame = new RM();
			frame.setVisible(true);
			}}
	static class Action2 implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			myMenu frame = new myMenu();
			frame.setVisible(true);
			}}
	static class Action3 implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			search frame = new search();
			frame.setVisible(true);
			}}
	
	private void initGUI() {
		try {
			GridBagLayout thisLayout = new GridBagLayout();
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			thisLayout.rowWeights = new double[] {0.0, 0.1};
			thisLayout.rowHeights = new int[] {45, 7};
			thisLayout.columnWeights = new double[] {0.0, 0.1};
			thisLayout.columnWidths = new int[] {107, 7};
			getContentPane().setLayout(thisLayout);
			{
				zero = new JPanel();
				getContentPane().add(zero, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				zero.setName("zero");
			}
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				jPanel1.setName("jPanel1");
				{
					jLabel1 = new JLabel();
					jPanel1.add(jLabel1);
					jLabel1.setName("jLabel1");
					jLabel1.setPreferredSize(new java.awt.Dimension(362, 29));
				}
			}
			{
				bar = new JPanel();
				GridBagLayout barLayout = new GridBagLayout();
				barLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1};
				barLayout.rowHeights = new int[] {40,40,40,40,40,40};
				barLayout.columnWeights = new double[] {0.1, 0.1, 0.1, 0.1};
				barLayout.columnWidths = new int[] { 7};
				bar.setLayout(barLayout);
				getContentPane().add(bar, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				bar.setName("bar");
				{
					jButton1 = new JButton();
					bar.add(jButton1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jButton1.setName("jButton1");
					jButton1.addActionListener(new Action());  
				}
				{
					jButton2 = new JButton();
					bar.add(jButton2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jButton2.setName("jButton2");
					jButton2.addActionListener(new Action2());  
				}
				{
					jButton3 = new JButton();
					bar.add(jButton3, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jButton3.setName("jButton3");
					jButton3.addActionListener(new Action3());  
				}
			}
			{
				text = new JPanel();
				BoxLayout textLayout = new BoxLayout(text, javax.swing.BoxLayout.Y_AXIS);
				text.setLayout(textLayout);
				getContentPane().add(text, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				text.setName("text");
				{
					jLabel2 = new JLabel();
					text.add(jLabel2);
					jLabel2.setName("jLabel2");
				}
				{
					TableModel jTable1Model = 
							new DefaultTableModel(
									new String[][] { { "One", "Two" }, { "Three", "Four" } },
									new String[] { "Column 1", "Column 2" });
					jTable1 = new JTable();
					text.add(jTable1);
					jTable1.setModel(jTable1Model);
				}
			}
			pack();
			setSize(517, 339);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
